﻿@namespace MudBlazor
@using MudBlazor.Utilities
@using MudBlazor.Extensions
@inherits MudComponentBase

<div @attributes="UserAttributes" class="@Classname" style="@Style">
    @ChildContent
</div>

@code {

    protected string Classname =>
    new CssBuilder("mud-toolbar")
      .AddClass($"mud-toolbar-dense", Dense)
      .AddClass($"mud-toolbar-gutters", !DisableGutters)
      .AddClass(Class)
    .Build();

    /// <summary>
    /// If true, compact padding will be used.
    /// </summary>
    [Parameter] 
    [Category(CategoryTypes.ToolBar.Appearance)]
    public bool Dense { get; set; }

    /// <summary>
    /// If true, disables gutter padding.
    /// </summary>
    [Parameter] 
    [Category(CategoryTypes.ToolBar.Appearance)]
    public bool DisableGutters { get; set; }

    /// <summary>
    /// Child content of component.
    /// </summary>
    [Parameter] 
    [Category(CategoryTypes.ToolBar.Behavior)]
    public RenderFragment ChildContent { get; set; }
}